-- GENERATED SPELL FOR [Iron Rune-Smith] --


function spell0_26408(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(52701,pUnit)
pUnit:RegisterEvent('Sorts_26408', 30283, 1)
end

function spell1_26408(pUnit, Event) --@Smelt Rune,n/a--
pUnit:FullCastSpellOnTarget(52699,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26408', 4000, 1)
end

function Sorts_26408(pUnit, Event)
local choix_sorts_26408 = math.random(0, 1)
if choix_sorts_26408 == 0 then
pUnit:RegisterEvent('spell0_26408', 1, 1)
end
if choix_sorts_26408 == 1 then
pUnit:RegisterEvent('spell1_26408', 1, 1)
end
end

function mob26408_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26408', math.random(1500, 3000), 1)
end

function mob26408_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26408_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26408_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26408, 1, 'mob26408_Action')
RegisterUnitEvent(26408, 2, 'mob26408_Leave')
RegisterUnitEvent(26408, 3, 'mob26408_Kill')
RegisterUnitEvent(26408, 4, 'mob26408_Die')
